/*
 * @Author: 尔尔
 * @Date: 2024-05-30 15:08:43
 * @LastEditors: 尔尔
 * @LastEditTime: 2024-05-30 15:33:56
 * @FilePath: \FinallNewDongche\src\api\TWorkRecordAbnormal\abnormal.js
 * @filePurpose:
 */
import request from '@/utils/request'

// 查询号志异常数据列表
export function listAbnormal(query) {
  return request({
    url: '/TWorkRecordAbnormal/abnormal/list',
    method: 'get',
    params: query
  })
}

// 查询号志异常数据详细
export function getAbnormal(id) {
  return request({
    url: '/TWorkRecordAbnormal/abnormal/' + id,
    method: 'get'
  })
}

// 新增号志异常数据
export function addAbnormal(data) {
  return request({
    url: '/TWorkRecordAbnormal/abnormal',
    method: 'post',
    data: data
  })
}

// 修改号志异常数据
export function updateAbnormal(data) {
  return request({
    url: '/TWorkRecordAbnormal/abnormal',
    method: 'put',
    data: data
  })
}

// 删除号志异常数据
export function delAbnormal(id) {
  return request({
    url: '/TWorkRecordAbnormal/abnormal/' + id,
    method: 'delete'
  })
}
